from ..extensions import db
class BtcUser(db.Model):
    __bind_key__ = 'wallet'
    __tablename__ = 'btc_user'
    id=db.Column(db.Integer,primary_key=True,autoincrement=True)
    user_id=db.Column(db.Integer)
    pubadd=db.Column(db.String(64),nullable=False,comment='')
    privkey=db.Column(db.String(64),unique=True,default='',comment='')
    publickey=db.Column(db.String(64),unique=True,default='',comment='')
    status=db.Column(db.Integer)
    create_time=db.Column(db.Integer)
    price=db.Column(db.Numeric(18,10),default=0,comment='')

class EthUser(db.Model):
    __bind_key__ = 'wallet'
    __tablename__ = 'eth_user'
    id=db.Column(db.Integer,primary_key=True,autoincrement=True)
    user_id=db.Column(db.Integer)
    pubadd=db.Column(db.String(64),nullable=False,comment='')
    privkey=db.Column(db.String(64),unique=True,default='',comment='')
    publickey=db.Column(db.String(64),unique=True,default='',comment='')
    status=db.Column(db.Integer)
    create_time=db.Column(db.Integer)
    price=db.Column(db.Numeric(18,10),default=0,comment='')
